home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / wb / DosMan121.lha / man / Echo < prev    next >
Text File  |  1995-05-05  |  3KB  |  86 lines

  1.  
  2.  
  3.  
  4.                   Echo(V1.3 in C:) (2.x/3.x internal))
  5.  
  6.  
  7.  
  8.      NAME
  9.             Echo - Echo a string to the terminal.
  10.  
  11.      SYNOPSIS
  12.           Echo [string] NOLINE FIRST LEN
  13.  
  14.      DESCRIPTION
  15.             Echo displays its argument to the current output, 
  16.         this can be the printer, a file or the terminal. Echo is 
  17.         typically used in scripts, but it can also be used (and 
  18.         useful) to send escape sequences to things like printers.
  19.     
  20.             2.x/3.x only: You can use echo to output a file to 
  21.         the environment. This is shown in the example below.
  22.  
  23.  
  24.             Note that with the added keywords, you MUST use 
  25.         double quotes to delimit a line to echo under 1.3. Under 
  26.         2.x/3.x you don't need the quotes ONLY if it appears last 
  27.         on the command line. 
  28.  
  29.             If you want to add a line feed, use the *N character. 
  30.         But, if you use this option in either 1.3, 2.x, or 3.x 
  31.         then quotes must be used.
  32.  
  33.      OPTIONS
  34.  
  35.           NOLINE
  36.             This suppresses the newline which Echo automatically 
  37.         adds at the end of its argument. This is useful in that 
  38.         it allows you to build a single line of text using the 
  39.         output of two or more commands.
  40.  
  41.           FIRST
  42.             This option takes a numeric argument, which indicates 
  43.         which character position to begin output at. Any 
  44.         character before FIRST will not be displayed. This is 
  45.         useful with LEN (see below).
  46.  
  47.           LEN 
  48.             This option takes a numeric argument, which indicates 
  49.         how many characters to output.  If you also supply a 
  50.         FIRST argument (see above), character output will begin 
  51.         with that character, for LEN characters. If LEN is used 
  52.         without the FIRST keyword, then the final LEN characters 
  53.         will be displayed.
  54.  
  55.      EXAMPLES
  56.  
  57.             1. To display "Hello World" on the terminal.
  58.  
  59.           Echo "Hello World!"
  60.  
  61.             2. To advance the printer paper, and displays Hello 
  62.         World! on the printer. Note that you must have set your 
  63.         escape character to \ for this example to work.
  64.  
  65.           Echo >PRT: "\FHello World!" 
  66.  
  67.             3. To display "ello World!".
  68.  
  69.           Echo First 2 "Hello World!" 
  70.  
  71.  
  72.             4. To display "rld!".
  73.  
  74.           Echo Len 4 "Hello World!"
  75.  
  76.  
  77.             5. To display "World!".
  78.  
  79.           Echo First 7 Len 6 "Hello World!" 
  80.  
  81.             6. To print the text file Ram:This.text to your 
  82.         screen.
  83.  
  84.           Echo Ram:This.text
  85. ø
  86.